<include file="header"/>
<div class="wraper" js="wapjs/base/print/js/ordercenter">
	<div class="head clearfix">
		<a href="javascript:history.back(-1)" class="iconfont icon-zuo pull-left"></a>
		<span class="head-name pull-left">订单中心</span>
		<a href="/base/PrintClient/center/conf_id/{BEESCRM:$conf_id}" class="pull-right text-right">主页</a>
	</div>
	<div>
		<div class="container text-center clearfix tab">			
			<div class="tab-list third-list <if condition="$type eq 1"> actived</if>"><a href="/base/PrintClient/ordercenter/conf_id/{BEESCRM:$conf_id}/type/1">图文制作</a></div>
			<div class="tab-list third-list <if condition="$type eq 2"> actived</if>"><a href="/base/PrintClient/ordercenter/conf_id/{BEESCRM:$conf_id}/type/2">电脑维修</a></div>
			<div class="tab-list third-list <if condition="$type eq 3"> actived</if>"><a href="/base/PrintClient/ordercenter/conf_id/{BEESCRM:$conf_id}/type/3">耗材配送</a></div>
		</div>
	</div>
	<div class="summary">
		<div class="summary-tab clearfix">
			<a href="#" class="third-list" id="clendar">{BEESCRM:$starttime|date='Y年m月',###}<span class="iconfont icon-wodedingdan18"></span></a>
			<div class="third-list text-center">当月订单<php> echo count($orderList);</php>笔</div>
			<div class="third-list text-right">总订单数 {BEESCRM:$countOrder}</div>
			<div class="clendar">
				<a href="/base/PrintClient/ordercenter/conf_id/{BEESCRM:$conf_id}/type/{BEESCRM:$type}"><php>echo date('Y年m月');</php></a>
				<volist name="months" id="vo">
					<a href="/base/PrintClient/ordercenter/conf_id/{BEESCRM:$conf_id}/type/{BEESCRM:$type}/starttime/{BEESCRM:$vo}">{BEESCRM:$vo|date='Y年m月',###}</a>				
				</volist>
			</div>
		</div>
	</div>
	<div>
		<if condition="$orderList">			
			<volist name="orderList" id="vo">
				<input type="hidden" id="conf_id" value="{BEESCRM:$conf_id}">
				<input type="hidden" id="order_type" value="{BEESCRM:$type}">
				<div class="lists">
					<div class="list-line clearfix"><span class="<switch name="vo.status" >
											<case value="1">text-blue</case>
											<case value="2">text-orange</case>
											<case value="3">text-green</case>
											<case value="4">text-green</case>
											<case value="5">text-green</case>
											</switch>">{BEESCRM:$status[$vo['status']]}</span><span class="pull-right text-grey">{BEESCRM:$vo.create_time|date='Y-m-d H:i',###}</span></div>
					<a href="#" class="text-12 list-line">订单描述：{BEESCRM:$vo.order_content}</a>
					<div class="list-line small-btn text-right">
						<if condition="$vo.status eq 1">
							<a href="javascript:void(0);" data-v="{BEESCRM:$vo.order_id}" class="btn white-btn cancel">取消订单</a>
						</if>
						<a href="/base/PrintClient/orderdetail/order_id/{BEESCRM:$vo.order_id}/conf_id/{BEESCRM:$conf_id}/order_type/{BEESCRM:$type}" class="btn white-btn">查看详情</a>
                        <if condition="$vo.status eq 5">
                            <a href="/base/PrintClient/comment/order_id/{BEESCRM:$vo.order_id}/order_type/{BEESCRM:$type}/conf_id/{BEESCRM:$conf_id}" class="btn bg-green">确认收货</a>
                        </if>
					</div>
				</div>
			</volist>
		<else/>
			<div class="norecord">
		        <img src="/assets/base/print/images/notrade.png"/>
		        <p class="text-grey">还没订单哦</p>
		    </div>
		</if>
	</div>
	<div class="layerwraper"></div>
</div>
<include file="footer"/>